import dayjs from 'dayjs'

class TimeUtils {

    //序列化日期
    format( date: Date, format:string="YYYY-MM-DD HH:mm:ss" ):string{
       return dayjs( date ).format(format);
    }

}

export default new TimeUtils();